<script>
export default {
  data() {
    return {
    };
  },
  methods: {
    handleClick() {
      this.$dialog({
        title: '标题',
        content: '今晚打老虎',
        btns: [
          {
            text: '确定',
            handler() {
              console.log('确定');
            }
          },
          {
            text: '取消',
            handler() {
              console.log('取消');
            }
          },
        ],
      })
    }
  }
};

</script>

<template>
  <div>
    <el-button @click="handleClick">open dialog</el-button>
  </div>
</template>
<style scoped></style>
